<?php

require_once dirname(__FILE__) . '/../_data/LzSqlTest.php';

$sql    = new LzTestClass('LzSqlTest');

try { $sql->parseFields(NULL); }
catch (LzBadUsage $e) { LzTests::ln('NULL failed'); }

try { $sql->parseFields(false); }
catch (LzBadUsage $e) { LzTests::ln('false failed'); }

try { $sql->parseFields(''); }
catch (LzBadUsage $e) { LzTests::ln('"" failed'); }

$sql    = new LzTestClass('LzSqlTest');
LzTests::ln(
        $sql->parseFields(true),
        $sql->parseFields(0),
        $sql->parseFields(5),
        $sql->parseFields(0.5),
        $sql->parseFields('foo')
    );
?>
---EXPECT---
NULL failed
false failed
"" failed
|1|
|0|
|5|
|0.5|
|foo|

